{extends file="template.tpl"}
{* STYLE SHEETS *}
{block name=css}<link rel="stylesheet" href="css/general.css" type="text/css" />
<link rel="stylesheet" href="css/admin.css" type="text/css" />
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>{/block}

{* LEFT MENU *}
{block name=leftMenu}
    {include file="../snippets/left_menu.tpl"}
{/block}

{* CONTENT *}
{block name=content}
                <h1>Sectie aanpassen</h1>
    {if isset($sectionId)}
                <form method="POST" action="admin.php?option=edit_section&section={$sectionId}" id="editSection">
                    <p class="sectionNameInputP">Naam {validate id="fSectionName" message="<span class='newArticleError' style='padding-left:50px;' >Naam mag niet leeg zijn</span>"}
                    <input type="text" id="sectionName" name="sectionName" value="{$sectionName}"/></p>
                    <p>Beschrijving</p>
                    <textarea id="sectionDescription" name="sectionDescription">{$sectionDescription}</textarea>
                    {validate id="fSectionDescription" message="<p class='newArticleError'>Sectie beschrijving mag niet leeg zijn</p>"}
                    <p id="buttonParagraph"><input type="submit" value="Update sectie" /></p>
                </form>
                <script>
                    {* CKEDITOR INITIALISATION *}
                    CKEDITOR.replace( 'sectionDescription' );
                </script>
    {else}
                <p class="newArticleError">Ongeldige sectie gekozen</p>
    {/if}
{/block}